package com.yun.zhong.fu.sharecenter.spring_origiond_code_study;

import org.springframework.context.ApplicationEvent;

/**
 * @Author RenPu
 * @Date 2022/10/23 16:42
 * @Version 1.0
 * @Description: 定义事件
 **/
public class MyEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public MyEvent(Object source) {
        super(source);
    }

    public void event(){
        System.out.println("自定义事件，已经被触发========");
    }
}
